﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class BUSMonAn
    {
        public static DataTable getAll()
        {
            return DAOMonAn.getAll();
        }

        public static DataTable getAll(object mamonan = null,object tenmonan = null)
        {
            return DAOMonAn.getAll(mamonan,tenmonan);
        }

        public static int add(DTOMonAn loai,DataTable dt)
        {
            return DAOMonAn.add(loai,dt);
        }

        public static int edit(DTOMonAn loai,string old_ma)
        {
            return DAOMonAn.edit(loai, old_ma);
        }

        public static int del(DTOMonAn loai)
        {
            return DAOMonAn.del(loai);
        }

        public static bool checkDuplicate(DTOMonAn loai, string old_ma)
        {
            return DAOMonAn.checkDuplicate(loai, old_ma);
        }
    }
}
